using System;

namespace MMS
{
	public class OrderForm_MaterialDTO
	{
		#region Constructors

		/// <summary>
		/// Initializes a new instance of the OrderForm_MaterialDTO class.
		/// </summary>
		public OrderForm_MaterialDTO()
		{
		}

		/// <summary>
		/// Initializes a new instance of the OrderForm_MaterialDTO class.
		/// </summary>
		public OrderForm_MaterialDTO(string idOrderForm, string idMaterial, int amount, int priceByDay, string idRepository, DateTime rentDay, DateTime returnDay, int idType)
		{
			this.IdOrderForm = idOrderForm;
			this.IdMaterial = idMaterial;
			this.Amount = amount;
			this.PriceByDay = priceByDay;
			this.IdRepository = idRepository;
			this.RentDay = rentDay;
			this.ReturnDay = returnDay;
			this.IdType = idType;
		}

		/// <summary>
		/// Initializes a new instance of the OrderForm_MaterialDTO class.
		/// </summary>
		public OrderForm_MaterialDTO(int id, string idOrderForm, string idMaterial, int amount, int priceByDay, string idRepository, DateTime rentDay, DateTime returnDay, int idType, string typeName)
		{
			this.Id = id;
			this.IdOrderForm = idOrderForm;
			this.IdMaterial = idMaterial;
			this.Amount = amount;
			this.PriceByDay = priceByDay;
			this.IdRepository = idRepository;
			this.RentDay = rentDay;
			this.ReturnDay = returnDay;
			this.IdType = idType;
            this.TypeName = typeName;
		}

		#endregion

		#region Properties
		/// <summary>
		/// Gets or sets the Id value.
		/// </summary>
		public int Id { get; set; }

		/// <summary>
		/// Gets or sets the IdOrderForm value.
		/// </summary>
		public string IdOrderForm { get; set; }

		/// <summary>
		/// Gets or sets the IdMaterial value.
		/// </summary>
		public string IdMaterial { get; set; }

		/// <summary>
		/// Gets or sets the Amount value.
		/// </summary>
		public int Amount { get; set; }

        public int Remaining { get; set; }

		/// <summary>
		/// Gets or sets the PriceByDay value.
		/// </summary>
		public int PriceByDay { get; set; }

		/// <summary>
		/// Gets or sets the IdRepository value.
		/// </summary>
		public string IdRepository { get; set; }

		/// <summary>
		/// Gets or sets the RentDay value.
		/// </summary>
		public DateTime RentDay { get; set; }

		/// <summary>
		/// Gets or sets the ReturnDay value.
		/// </summary>
		public DateTime ReturnDay { get; set; }

		/// <summary>
		/// Gets or sets the IdType value.
		/// </summary>
		public int IdType { get; set; }
        public string TypeName { get; set; }
		#endregion
	}
}
